-- GENERATED SPELL FOR [Chosen Zealot] --


function spell0_32175(pUnit, Event) --@Frailty,Self--
pUnit:FullCastSpellOnTarget(12530,pUnit)
pUnit:RegisterEvent('Sorts_32175', 614, 1)
end

function spell1_32175(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32175', 15000, 1)
end

function Sorts_32175(pUnit, Event)
local choix_sorts_32175 = math.random(0, 1)
if choix_sorts_32175 == 0 then
pUnit:RegisterEvent('spell0_32175', 1, 1)
end
if choix_sorts_32175 == 1 then
pUnit:RegisterEvent('spell1_32175', 1, 1)
end
end

function mob32175_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32175', math.random(1500, 3000), 1)
end

function mob32175_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32175_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32175_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32175, 1, 'mob32175_Action')
RegisterUnitEvent(32175, 2, 'mob32175_Leave')
RegisterUnitEvent(32175, 3, 'mob32175_Kill')
RegisterUnitEvent(32175, 4, 'mob32175_Die')
